import { DialogForm } from 'custom/index'
import { operateZzhObj } from '../api'

const addZzhDialog = new DialogForm('DialogForm')

addZzhDialog
    .width('30%')
    .getApi(async (_, row) => {
        console.log(row);
        return row;
    })
    .postApi(operateZzhObj)
    .useGroup('业务类型')
    .useItem('zzhmc').label('子账号名称').required().end()
    .useItem('zzhmm').label('子账号密码').required().end()
    .useDictSelect('lrfsVal', 'lrfs').label('录入方式').setProp('widthLabel', 'lrfsName').required().end()
    .useItem('sjzh').label('数据账号').required().end()


export { addZzhDialog }